﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:viewModels="clr-namespace:Bull.Plugins.Market.ViewModels;assembly=Bull.Plugins.Market.ViewModels">
    <HierarchicalDataTemplate DataType="{x:Type viewModels:EventTypeViewModel}" ItemsSource="{Binding Events, IsAsync=True}">
        <TextBlock Text="{Binding Name}" />
    </HierarchicalDataTemplate>
    <HierarchicalDataTemplate DataType="{x:Type viewModels:EventViewModel}" ItemsSource="{Binding Markets, IsAsync=True}">
        <TextBlock>
                <Hyperlink Command="{Binding EventTypeSelectedCommand}">
                    <TextBlock Text="{Binding Name}" />
                </Hyperlink>
            </TextBlock>
    </HierarchicalDataTemplate>
    <DataTemplate DataType="{x:Type viewModels:MarketCatalogueViewModel}">
        <TextBlock>
                <Hyperlink Command="{Binding MarketSelectedCommand}">
                    <TextBlock Text="{Binding Name}" />
                </Hyperlink>
            </TextBlock>
    </DataTemplate>
</ResourceDictionary>